package com.cy.核心编程.stream.obj;

import java.io.File;
import java.io.FileInputStream;
import java.io.ObjectInputStream;

/**
 * IO流_对象流_对象反序列化
 */
public class Test2 {
    public static void main(String[] args) throws Exception {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File("src/person.dat")));
        System.out.println(ois.readObject());
        ois.close();
    }
}
